﻿Imports System.Data
Imports System.Data.Odbc
Imports WSEntidades
Public Class MarcasFact
    Public Shared Function Build(ByVal dr As OdbcDataReader) As MarcasBE
        Dim tmpMarcas As MarcasBE = New MarcasBE()
        Try
            With tmpMarcas
                .Id = convertDTFromDb.ConvertLong(dr.Item("Id"))
                .IdEmpresa = convertDTFromDb.ConvertShort(dr.Item("IdEmpresa"))
                .IdMarca = convertDTFromDb.convertInt32(dr.Item("IdMarca"))
                .Marca = convertDTFromDb.ConvertString(dr.Item("Marca"))
                .Status = convertDTFromDb.ConvertString(dr.Item("Status"))
            End With
            Return tmpMarcas
        Catch ex As Exception
            Throw
        Finally
            tmpMarcas = Nothing
        End Try
    End Function
End Class
